package com.test.multithread.springBean.beanTest;

import com.test.multithread.springBean.beanTest.Father;

public class Son extends Father {

    private int i = test();

    private static int j = method();

    static {
        System.out.println("6 子类静态代码块");
    }

    Son() {
        System.out.println("7 子类无参构造函数");
    }

    {
        System.out.println("8 子类代码块");
    }

    @Override
    public int test() {
        System.out.println("9 子类 test 方法");
        return 1;
    }

    public static int method() {
        System.out.println("10 子类 static method 方法");
        return 1;
    }

}